<div class="form-group">
    <label <if condition="$item['extra']['required']">class="required"</if>>{$item.title}</label>
    <div>
        <input type="text" class="form-control" name="{$item.name}" value="{$item.value}" placeholder="请输入{$item.title}">
    </div>
    <div class="help-block">{$item.tip}</div>
</div>
<script type="text/javascript">
    // 仅选择日期
    $("input[name={$item.name}]").datetimepicker({
        language:  "zh-CN",
        weekStart: 1,
        todayBtn:  1,
        autoclose: 1,
        todayHighlight: 1,
        startView: 2,
        minView: 2,
        forceParse: 0,
        format: "yyyy.mm.dd"
    });
</script>
